#include "GameObject.h"
#include "../Common/Common.h"
#include "Camera.h"
#include "DxLib.h"

// ----------------------------- //

GameObject::GameObject(void)
	: m_position( Vector2::ZERO )//m_mapPoint( 0, 0 )
	, m_textureHandle( -1 )
	, m_isDead( false )
{
}

// ----------------------------- //

GameObject::GameObject( int textureHandle, const Vector2& pos )
	: m_position( pos )//m_mapPoint( point )
	, m_textureHandle( textureHandle )
	, m_isDead( false )
{

}

// ----------------------------- //

GameObject::~GameObject(void)
{
}

// ----------------------------- //

void GameObject::Update( float delta )
{
	UNUSED_VARIABLE( delta );	
}

// ----------------------------- //

void GameObject::Draw()
{
	Camera* camera = Camera::GetInstancePtr();
	DrawGraphF( m_position.X - Camera::GetInstance().GetX(), m_position.Y - Camera::GetInstance().GetY(), m_textureHandle, 1 );
}


